package com.futu.es.domain;

import lombok.Data;
import org.dromara.easyes.annotation.IndexField;
import org.dromara.easyes.annotation.IndexId;
import org.dromara.easyes.annotation.IndexName;
import org.dromara.easyes.annotation.rely.FieldType;
import org.dromara.easyes.annotation.rely.IdType;

import java.util.Date;

@IndexName("es_spot")
@Data
public class EsSpot {
    /**
     * 景点ID
     */
    @IndexId(type = IdType.CUSTOMIZE)
    private Long id;
    @IndexField(fieldType = FieldType.TEXT)
    /**
     * 景点名称
     */
    private String name;
    @IndexField(fieldType = FieldType.TEXT ,analyzer = "ik_smart")
    /**
     * 景点简介
     */
    private String description;
    @IndexField(fieldType = FieldType.DOUBLE)
    /**
     * 纬度
     */
    private Double latitude;
    @IndexField(fieldType = FieldType.DOUBLE)
    /**
     * 经度
     */
    private Double longitude;
    @IndexField(fieldType = FieldType.KEYWORD)
    /**
     * 全景图URL
     */
    private String panoramaUrl;
    @IndexField(fieldType = FieldType.DATE,dateFormat = "yyyy-MM-dd HH:mm:ss")
    /**
     * 创建时间
     */
    private Date createTime;
    @IndexField(fieldType = FieldType.DATE,dateFormat = "yyyy-MM-dd HH:mm:ss")
    /**
     * 更新时间
     */
    private Date updateTime;
    
    @IndexField(fieldType = FieldType.TEXT, analyzer = "ik_smart")
    /**
     * 景点地址
     */
    private String address;
    
    @IndexField(fieldType = FieldType.KEYWORD)
    /**
     * 城市名称
     */
    private String cityname;
}
